// @ts-ignore
/* eslint-disable */
import {request} from '@umijs/max';
import {LicenseListItem} from './data';

export async function licenseMy(
    options?: { [key: string]: any },
) {
    return request<{
        data: LicenseListItem;
    }>('/api/license/my', {
        method: 'GET',
        ...(options || {}),
    });
}

export async function licenseImport(data: { [key: string]: any }, options?: { [key: string]: any }) {
    return request<LicenseListItem>('/api/license/import', {
        data,
        method: 'POST',
        ...(options || {}),
    });
}
